home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / c / ulog / ulogInt.h < prev   
Encoding:
C/C++ Source or Header  |  1988-09-15  |  1.4 KB  |  56 lines

  1. /*
  2.  * ulogInt.h --
  3.  *
  4.  *    Declarations of constants and variables shared by the ulog
  5.  *    routines.
  6.  *
  7.  * Copyright 1988 Regents of the University of California
  8.  * Permission to use, copy, modify, and distribute this
  9.  * software and its documentation for any purpose and without
  10.  * fee is hereby granted, provided that the above copyright
  11.  * notice appear in all copies.  The University of California
  12.  * makes no representations about the suitability of this
  13.  * software for any purpose.  It is provided "as is" without
  14.  * express or implied warranty.
  15.  *
  16.  * $ulogInt: proto.h,v 1.2 88/03/11 08:39:40 ouster Exp $ SPRITE (Berkeley)
  17.  */
  18.  
  19. #ifndef _ULOGINT
  20. #define _ULOGINT
  21.  
  22. #include <stdio.h>
  23. #include <syslog.h>
  24. #include <sys/file.h>
  25. #include <sys/errno.h>
  26. #include <string.h>
  27. #include <sys/time.h>
  28. #include <db.h>
  29. #include <host.h>
  30.  
  31.  
  32. /*
  33.  * DEBUG_ULOG controls printing error messages when returning failure
  34.  * conditions.
  35.  */
  36.  
  37. #define DEBUG_ULOG
  38.     
  39. /*
  40.  * Define the length of a record in the database.  Records are fixed-length
  41.  * strings, padded by null characters if necessary.  Each integer in the
  42.  * string is of length MAX_INT_STR_LEN or less (10 digits, plus a sign,
  43.  * plus a  byte for the intervening space).
  44.  */
  45.  
  46. #define MAX_INT_STR_LEN 12
  47. #define ULOG_RECORD_LENGTH ((4 * MAX_INT_STR_LEN) + ULOG_LOC_LENGTH)
  48. #define ULOG_FORMAT_STRING "%d %d %d %d %s"
  49. #define ULOG_ITEM_COUNT 5
  50.  
  51. extern int Ulog_WriteLogEntry();
  52.  
  53. extern int errno;
  54.  
  55. #endif _ULOGINT
  56.